package com.hxzy.es.repository;

import com.hxzy.es.entity.EsGoodsInfo;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * ES增删改查操作
 */
public interface EsGoodsInfoRepository  extends ElasticsearchRepository<EsGoodsInfo,Long> {

    /**
     * 编写价格在某个区间之内的
     * @param min
     * @param max
     * @return
     */
    List<EsGoodsInfo> findBySellingPriceBetween(int min,int max);



}
